/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.asset.dto.receive;

import cn.hutool.core.collection.CollUtil;
import com.fuyao.cloud.common.data.mybatis.SearchCondition;
import com.fuyao.cloud.common.data.mybatis.SearchOp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;

/**
 * 资产领用
 *
 * @author liyue
 * @date 2021-12-16 10:41:00
 */
@Data
@ApiModel(value = "资产领用")
public class ReceiveSearchDTO {

	@SearchCondition
	@ApiModelProperty(value = "制单人ID")
	private Long createId;

	@SearchCondition
	@ApiModelProperty(value = "制单人姓名")
	private String createBy;

	@ApiModelProperty(value = "创建时间")
	@SearchCondition(op = SearchOp.BETWEEN)
	private List<LocalDate> createTime;

	@SearchCondition
	@ApiModelProperty(value = "制单人所属OU的ID")
	private Long deptId;

	@SearchCondition
	@ApiModelProperty(value = "制单人所属OU的全称")
	private String deptFullname;

	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value = "单号")
	private String caseid;

	@SearchCondition
	@ApiModelProperty(value="{0:资用，1:退库}")
	private String type;

	@SearchCondition
	@ApiModelProperty(value = "默认为0{0：草稿、1：处理中、2：已审批、3：已完成、4：作废}当验收单点击入库操作完成后更改为3：已完成")
	private String status;

	@SearchCondition
	@ApiModelProperty(value = "使用人ID")
	private Long userId;

	@SearchCondition
	@ApiModelProperty(value = "使用人姓名")
	private String userName;

	@SearchCondition
	@ApiModelProperty(value = "使用人所属OU的ID")
	private Long userOuid;

	@SearchCondition
	@ApiModelProperty(value = "使用人所属OU的全称")
	private String userOufullname;

	@SearchCondition
	@ApiModelProperty(value = "使用人所属OU的名称")
	private String userOuname;

	@SearchCondition(op = SearchOp.BETWEEN)
	@ApiModelProperty(value = "出库时间点击领用单上的完成按钮时进行出库操作，并记录出库时间格式：2021-11-01 01:11:11")
	private List<LocalDate> outTime;

	@SearchCondition
	@ApiModelProperty(value = "领用仓库名称")
	private String outhouseName;

	@SearchCondition
	@ApiModelProperty(value = "领用仓库ID")
	private Long outhouseId;

	@SearchCondition
	@ApiModelProperty(value = "领用仓库全名称")
	private String fullLocation;

	@SearchCondition
	@ApiModelProperty(value = "总价格")
	private BigDecimal amount;

	@SearchCondition
	@ApiModelProperty(value = "货币类型默认人民币：人民币：、欧元：欧元、美元：美元、法元：法元")
	private String currencyType;

	@SearchCondition
	@ApiModelProperty(value = "资产明细")
	private String detailed;

	@SearchCondition
	@ApiModelProperty(value = "领用说明")
	private String explains;

	@SearchCondition
	@ApiModelProperty(value = "存放房间名称")
	private String inhouseName;

	@SearchCondition
	@ApiModelProperty(value = "存放房间ID")
	private Long inhouseId;

	@SearchCondition
	@ApiModelProperty(value = "存放位置名称")
	private String inlocationName;

	@SearchCondition
	@ApiModelProperty(value = "存放位置id")
	private Long inlocationId;

	@SearchCondition
	@ApiModelProperty(value = "存放地点全名称")
	private String infullLocation;

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "资产名称")
	private String cardName;

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "资产编码")
	private String cardCode;

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "商品条码")
	private String barcode;

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "资产编码")
	private String model;

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "入库数量")
	private String quantity;

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "入库单价")
	private String price;

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "入库金额")
	private String amountList;
}
